<?php
//设置时区
date_default_timezone_set("PRC");

//默认无期
setcookie("userId", 1 , time() + 3600);

//row不对url编码
setrawcookie("userName","恶魔猎手");

//输出值
echo $_COOKIE["userId"];
echo "<br/>";

echo time();
echo "<br/>";
echo date('Y-m-d H:i:s' , time());
echo "<br/>";

//查看所有COOKIE
print_r($_COOKIE);